#pragma once
#include "netdefine.h"

class IMessage
{
public:
	IMessage(MESSAGE_TYPE type, SOCKID sock):m_type(type),m_sock(sock){
	};
	virtual ~IMessage() {};

	virtual MESSAGE_TYPE getType() {
		return m_type;
	}

	virtual SOCKID GetSock() {
		return m_sock;
	}

protected:
	MESSAGE_TYPE  m_type;
	SOCKID m_sock;
};
